<?
ob_start();
session_start();
include("../conf/config.php");
include("../conf/database.php");
include("../conf/tools.php");

$curTime=getIndianDateTime();
$list_id=$_GET["list_id"];
$mode=$_GET["mode"]; 

foreach($_POST as $key => $value) { $arr_data[$key]=$value;}
foreach($arr_data as $key => $value) { $arr_data[$key]=addslashes($value); }

$arr_data["rec_status"]=1;


if($list_id>0){

update_qry("bkitc_invite_list",$arr_data,"list_id=".$list_id);
qry_data("update bkitc_invite_list set rec_last_updated='".$curTime."' where list_id=".$list_id);

}
else{

	$list_id=insert_qry("bkitc_invite_list",$arr_data);
	qry_data("update bkitc_invite_list set rec_created='".$curTime."' where list_id=".$list_id);

}



header("location:edit_event_inv.php?mode=edit&list_id=".$list_id);
?>



